﻿@using Flagrum.Web.Features.AssetExplorer.Data
@inject FlagrumDbContext Context

@*AssetExplorer.FileList?.CurrentNode.Path == Node.Path*@
<div class="py-1 px-4 transition-colors hover:bg-grey-700 select-none cursor-pointer @(AssetExplorer.AddressBar?.CurrentPath == Node.Path || AssetExplorer.ContextNode == Node ? "bg-grey-700" : "")"
     @onclick="() => OnClick(Node)">
    <div class="row">
        <span class="material-icons text-sm">@Node.Icon</span>
        <span class="pl-2 flex-grow text-sm" style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">@Node.DisplayName</span>
    </div>
</div>